package com.example.qxfw.qxsjtj.controller;

import com.example.qxfw.common.SysResult;
import com.example.qxfw.qxsjtj.entity.vo.MeteorologicalDataVo;
import com.example.qxfw.qxsjtj.service.MeteorologicalDataStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 气象数据查询统计
 */
@CrossOrigin
@RestController
@RequestMapping(value = "/meteorologicalDataStatistics")
public class MeteorologicalDataStatisticsController {

    @Autowired
    private MeteorologicalDataStatisticsService meteorologicalDataStatisticsService;

    /**
     * 气象数据查询统计
     **/
    @GetMapping("/getMaxWindValue")
    public SysResult getMaxWindValue(MeteorologicalDataVo meteorologicalDataVo) {
        return SysResult.success(meteorologicalDataStatisticsService.getMaxWindValue(meteorologicalDataVo));
    }


}
